package transport;

import java.util.*;
import network.*;

class AckTask extends TimerTask {

	String message;

	AckTask(String message) {
		this.message = message;
	}

	public void run() {
		String[] splitMessage = message.split(":");
		TransportLayer.hashACKsend.get(splitMessage[0]).window.updateFailures();
		NetworkLayer.send(message);
	}
}